package com.qingshu.common.entity.custom.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Huzz
 * @since 2021-12-09
 */
@Data
@ApiModel(value="MusicModel", description="音乐添加")
public class MusicAddModel {

    @ApiModelProperty(value = "音乐名称", required = true)
    private String musicName;

    @ApiModelProperty(value = "歌手id", example = "123")
    private Integer singerId;

    @ApiModelProperty(value = "音乐文件id", required = true, example = "123")
    private Integer musicFileId;

    @ApiModelProperty(value = "歌词id", example = "123")
    private Integer lyricId;

    @ApiModelProperty(value = "音乐类型id", example = "123")
    private Integer musicTypeId;

    @ApiModelProperty(value = "发行时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date publishDate;

    @ApiModelProperty(value = "专辑ID(专辑ID和专辑名称不能同时存在)")
    private Integer albumId;

    @ApiModelProperty(value = "专辑名称(专辑ID和专辑名称不能同时存在)")
    private String albumName;

}
